package com.pan.games.threadgame;

import lombok.extern.slf4j.Slf4j;

/**
 * @author by panstark
 * @description
 * @notice
 * @date 2020/12/15
 */
@Slf4j
public class FireThread extends Thread {

    public FireThread(){
        this.setName("fireThread");
    }

    @Override
    public void run() {
        log.info("my name is:"+this.getName());
        //3):在run方法中编写需要执行的操作
        for(int i = 0; i < 10; i ++){
            log.info("fire is boling wather:" +i+".");
        }
    }
}
